import React, { Component } from 'react'
import qs from 'qs';
export default class Detail extends Component {
  render() {
    console.log('进来了');
    console.log(this.props);
    // 接受 params参数
    const {match} = this.props
    console.log(match);
    // 接收 search参数
    // const { search } = this.props.location
    // const result = qs.parse(search.slice(1))
    // const{content,id,title}=JSON.parse(result.detail)
    // 接收 state参数
    // console.log(this.props.location.state);
    /* const { state } = this.props.location */
    return (
      <div>
        <hr />  
        <ul>
            {/* <li>id:{state.id}</li>
            <li>title:{state.title}</li>
            <li>content:{state.content}</li> */}
        </ul>
      </div>
    )
  }
}
